package tut.Struct.collection.phan1.map.marinHashMap;

public class MarinSummaryKeyHash {
	public int linkId = 0;
	public int conversionId = 0;

	public MarinSummaryKeyHash(int linkId, int conversionId) {
		this.linkId = linkId;
		this.conversionId = conversionId;
	}

	public boolean equals(Object obj) {
		if (obj == null)
			return false;
		if (!(obj instanceof MarinSummaryKeyHash))
			return false;

		MarinSummaryKeyHash comp = (MarinSummaryKeyHash) obj;

		if (this.linkId != comp.linkId)
			return false;
		if (this.conversionId != comp.conversionId)
			return false;
		return true;
	}


	@Override
	public int hashCode() {
		int prime = 31;
		int result = 1;
		result = prime * result + linkId;
		result = prime * result + conversionId;
		return result;
	}

}
